<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title></title>
		 <link rel="stylesheet" href="css/amazeui.min.css" />
		  <link rel="stylesheet" href="css/admin.css" />
	</head>
    <script src="js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
      $(window).load(function () {

      })
    </script>
	<body>
		<div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf">
          <strong class="am-text-primary am-text-lg">商品管理</strong>
        </div>
      </div>
      <hr>


          <ul class="am-avg-sm-2 am-avg-md-4 am-avg-lg-6 am-margin gallery-list">
        <li th:each="CommodityList : ${wodeshangpin}">
          <a href="#">
            <img class="am-img-thumbnail am-img-bdrs" th:src="@{/image/{fileName}(fileName=(${CommodityList.getPicturepath()}))}" alt="" style="height: 5cm;width: 6cm">
            <div class="gallery-title" th:text="${CommodityList.getTradename()}"></div>
            <form action="/updateWarehousegoods" method="get">
              <input type="hidden" th:value="${CommodityList.getGoodsid()}" name="goodsid">
              <input type="hidden" name="iss" th:value="1">
              <input type="submit" value="缺货">
              <!-- th:onclick="|javascript:tianjia(${CommodityList.getGoodsid()})|"-->
            </form>
          </a>
        </li>
      </ul>

    
    </div>

        <div class="admin-content-body">
          <div class="am-cf am-padding am-padding-bottom-0">
            <div class="am-fl am-cf">
              <strong class="am-text-primary am-text-lg">缺货商品</strong>
            </div>
          </div>
          <hr>


          <ul class="am-avg-sm-2 am-avg-md-4 am-avg-lg-6 am-margin gallery-list">
            <li th:each="CommodityList : ${quehuoshangpin}">
              <a href="#">
                <img class="am-img-thumbnail am-img-bdrs" th:src="@{/image/{fileName}(fileName=(${CommodityList.getPicturepath()}))}" alt="" style="height: 5cm;width: 6cm">
                <div class="gallery-title" th:text="${CommodityList.getTradename()}"></div>
                <form action="/updateWarehousegoods" method="get">
                  <input type="hidden" th:value="${CommodityList.getGoodsid()}" name="goodsid">
                  <input type="hidden" name="iss" th:value="0">
                  <input type="text"placeholder="库存" name="stock" pattern="^[1-9]\d*$" required>
                  <input type="submit" value="补货" >
                  <!-- th:onclick="|javascript:tianjia(${CommodityList.getGoodsid()})|"-->
                </form>
              </a>
            </li>
          </ul>


        </div>
	</body>
</html>
